#pragma once
#include "EngineData.h"
#include "fmod.hpp"
#pragma comment(lib, "fmodex_vc.lib")
class Sounds
{
private:
	float volume;
	FMOD::System *system;
	FMOD_RESULT result;
	unsigned int version;
	int numdrivers;
	FMOD_SPEAKERMODE speakermode;
	FMOD_CAPS caps;
	char name[256];
	FMOD::Sound* sound[NUMFILES];
	FMOD::Channel* chan;
public:
	Sounds(void);
	void Init(); //initialize fmod
	void setSound(int n);
	void setBGM(int n);
	void setVolume(float v);
	void pauseSound(int n);
	void playSound(int n);
	void update();
	void release();
	~Sounds();
};
